<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>设置学生作业上传文件夹</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
		<load href="__JS__/jQuery/jquery.js" />
       	<load href="__JS__/jQuery/jquery.form.js" />
		<script type="text/JavaScript">
		 $(function(){
	            $('#form1').ajaxForm({
	                //beforeSubmit:  function(){alert("before");},  // pre-submit callback
	                success:       complete,  // post-submit callback
	                error:function(){alert("error");},
	                dataType: 'json'
	            });
	            
	            function complete(data){
	                if (data.status==1)
	                {
	                	window.location='__URL__/classfile/id/{$id}';
	                }else{
	                    $('#result').html(data.info).show();
	                }
	            }
	        });
        </script>
</head>
<body>
<layout name="Auth:header" />
	<div class="container-fluid">
     	<div class="row-fluid">
			<layout name="Auth:leftmenu" />
            	 <div class="span8">
                          <div class="hero-unit">
                            <h1>设置学生作业上传文件夹</h1>
                             <p style="font-size:12px">当前位置：
                             <a href='__APP__/index/index'  class="nowpositionhref">主页</a>>
                            <a href='__URL__/index'  class="nowpositionhref">后台管理</a>>
                            <a href='__URL__/classdetail'  class="nowpositionhref">教学班管理</a>>
                            <a href='__URL__/classfile/id/{$id}'  class="nowpositionhref">作业管理</a>>
                            <a href=""  class="nowpositionhref">设置上传文件夹</a>
                            </p>
                          </div>
						<div id='result'></div>
                        <form  id='form1' method='post' action='__URL__/save_add'>
                       <input type='text' name='pname' placeholder=" 设置上传文件夹" class="input-xxlarge"><br>
                        <input type='hidden' name='classid' value={$id}>
                        <input type='hidden' name='number' value={$number}>
                        <input type='submit' class="btn btn-success" value='提交'>
                        </form>
                        </div>
                      </div>
                    </div>
</body>
</html>